package com.qf.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * @author WuZiYu
 * @date 2022-6-3 上午 12:14
 */
//@FeignClient(name = "sms-platform-cache",fallback = )//降级处理
@FeignClient(name = "sms-platform-cache")
@RequestMapping("/cache")
public interface CacheFeign {

    /**
     * 查询Redis中的Hash   通过Key查询Map
     * @param key
     * @return
     */
    @RequestMapping(value = "/hmget/{key}", method = RequestMethod.GET)
    public Map hMGet(@PathVariable("key") String key);
}
